home *** CD-ROM | disk | FTP | other *** search
/ Developer Helper 1: Phil & Dave's Excellent CD / Excellent CD HFS.raw / HyperCard / HyperCard 1.2.2 International / HyperCard British (B-1.2.2) / Stacks / Catalog / background_2757.txt < prev    next >
Text File  |  1988-11-08  |  11KB  |  528 lines

  1. -- background: 2757 from stack: in
  2. -- bmap block id: 7426
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: 
  6. ----- HyperTalk script -----
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16. -- part 6 (button)
  17. -- low flags: 00
  18. -- high flags: 2000
  19. -- rect: left=260 top=295 right=320 bottom=287
  20. -- title width / last selected line: 0
  21. -- icon id / first selected line: 1013 / 1013
  22. -- text alignment: 1
  23. -- font id: 0
  24. -- text size: 12
  25. -- style flags: 0
  26. -- line height: 16
  27. -- part name: 
  28. ----- HyperTalk script -----
  29. on mouseUp
  30.   visual effect wipe left
  31.   go to next card
  32. end mouseUp
  33.  
  34.  
  35.  
  36. -- part 7 (button)
  37. -- low flags: 00
  38. -- high flags: 2000
  39. -- rect: left=229 top=295 right=320 bottom=256
  40. -- title width / last selected line: 0
  41. -- icon id / first selected line: 1014 / 1014
  42. -- text alignment: 1
  43. -- font id: 0
  44. -- text size: 12
  45. -- style flags: 0
  46. -- line height: 16
  47. -- part name: 
  48. ----- HyperTalk script -----
  49. on mouseUp
  50.   visual effect wipe right
  51.   go to previous card
  52. end mouseUp
  53.  
  54.  
  55.  
  56. -- part 8 (button)
  57. -- low flags: 00
  58. -- high flags: 0000
  59. -- rect: left=8 top=292 right=321 bottom=40
  60. -- title width / last selected line: 0
  61. -- icon id / first selected line: 21700 / 21700
  62. -- text alignment: 1
  63. -- font id: 0
  64. -- text size: 12
  65. -- style flags: 0
  66. -- line height: 16
  67. -- part name: Home
  68. ----- HyperTalk script -----
  69. on mouseUp
  70.   visual effect barn door close
  71.   go Home
  72. end mouseUp
  73.  
  74.  
  75.  
  76. -- part 9 (button)
  77. -- low flags: 00
  78. -- high flags: 2000
  79. -- rect: left=455 top=293 right=321 bottom=492
  80. -- title width / last selected line: 0
  81. -- icon id / first selected line: 1012 / 1012
  82. -- text alignment: 1
  83. -- font id: 0
  84. -- text size: 12
  85. -- style flags: 0
  86. -- line height: 16
  87. -- part name: 
  88. ----- HyperTalk script -----
  89. on mouseUp
  90.   visual effect barn door close
  91.   pop card
  92. end mouseUp
  93.  
  94.  
  95.  
  96. -- part 10 (field)
  97. -- low flags: 00
  98. -- high flags: 2002
  99. -- rect: left=216 top=54 right=78 bottom=340
  100. -- title width / last selected line: 0
  101. -- icon id / first selected line: 0 / 0
  102. -- text alignment: 0
  103. -- font id: 3
  104. -- text size: 12
  105. -- style flags: 0
  106. -- line height: 16
  107. -- part name: Product #
  108.  
  109.  
  110. -- part 11 (field)
  111. -- low flags: 00
  112. -- high flags: 2002
  113. -- rect: left=216 top=82 right=107 bottom=340
  114. -- title width / last selected line: 0
  115. -- icon id / first selected line: 0 / 0
  116. -- text alignment: 0
  117. -- font id: 3
  118. -- text size: 12
  119. -- style flags: 0
  120. -- line height: 16
  121. -- part name: Category
  122.  
  123.  
  124. -- part 12 (field)
  125. -- low flags: 00
  126. -- high flags: 2002
  127. -- rect: left=216 top=111 right=136 bottom=487
  128. -- title width / last selected line: 0
  129. -- icon id / first selected line: 0 / 0
  130. -- text alignment: 0
  131. -- font id: 3
  132. -- text size: 12
  133. -- style flags: 0
  134. -- line height: 16
  135. -- part name: Type
  136.  
  137.  
  138. -- part 13 (field)
  139. -- low flags: 00
  140. -- high flags: 2007
  141. -- rect: left=142 top=162 right=291 bottom=486
  142. -- title width / last selected line: 0
  143. -- icon id / first selected line: 0 / 0
  144. -- text alignment: 0
  145. -- font id: 3
  146. -- text size: 12
  147. -- style flags: 0
  148. -- line height: 16
  149. -- part name: Description
  150.  
  151.  
  152. -- part 14 (button)
  153. -- low flags: 00
  154. -- high flags: 8002
  155. -- rect: left=141 top=54 right=78 bottom=217
  156. -- title width / last selected line: 0
  157. -- icon id / first selected line: 0 / 0
  158. -- text alignment: 1
  159. -- font id: 0
  160. -- text size: 12
  161. -- style flags: 0
  162. -- line height: 16
  163. -- part name: Product #
  164. ----- HyperTalk script -----
  165. on mouseUp
  166.   -- SORT
  167.   if highlight of bkgnd button 12 is true
  168.   then
  169.   sort by bkgnd field 1
  170.   exit mouseUp
  171. end if
  172. -- FIND
  173. if highlight of bkgnd button 9 is true
  174. then
  175. ask "What Product # ?"
  176. if it is empty then exit mouseUp
  177. show msg box at 1000,1000 -- Puts the msg box away
  178. put "find " & quote & it & quote into msg box
  179. put " in bkgnd field 1" after msg box
  180. send enterKey
  181. if the result is "Not found"
  182. then
  183. answer "Sorry, no such entry" with "OK"
  184. else
  185.   show msg box at 15,310
  186. end if
  187. end if
  188. end mouseUp
  189.  
  190.  
  191.  
  192.  
  193.  
  194. -- part 15 (button)
  195. -- low flags: 00
  196. -- high flags: 8002
  197. -- rect: left=142 top=82 right=107 bottom=217
  198. -- title width / last selected line: 0
  199. -- icon id / first selected line: 0 / 0
  200. -- text alignment: 1
  201. -- font id: 0
  202. -- text size: 12
  203. -- style flags: 0
  204. -- line height: 16
  205. -- part name: Category
  206. ----- HyperTalk script -----
  207. on mouseUp
  208.   put 2 into fieldNb
  209.   put "What category ?" into question
  210.  
  211.   -- VIEW
  212.   if highlight of bkgnd button 11 is true then
  213.     put bkgnd field fieldNb into it
  214.     set lockscreen to true
  215.     go next
  216.     find it in bkgnd field fieldNb
  217.     set lockscreen to false
  218.     exit mouseUp
  219.   end if
  220.   -- SORT
  221.   if highlight of bkgnd button 12 is true then
  222.     sort by field fieldNb
  223.     exit mouseUp
  224.   end if
  225.   -- FIND
  226.   if highlight of bkgnd button 9 is true
  227.   then
  228.   ask question
  229.   if it is empty then exit mouseUp
  230.   show msg box at 1000,1000 -- Puts the msg box away
  231.   put "find " & quote & it & quote into msg box
  232.   put " in background field " & fieldNb after msg box
  233.   send enterKey
  234.   if the result is "Not found"
  235.   then
  236.   answer "Sorry, no such entry" with "OK"
  237. else
  238.   show msg box at 15,310
  239. end if
  240. end if
  241.  
  242. end mouseUp
  243.  
  244.  
  245.  
  246.  
  247. -- part 16 (button)
  248. -- low flags: 00
  249. -- high flags: 8002
  250. -- rect: left=142 top=111 right=136 bottom=217
  251. -- title width / last selected line: 0
  252. -- icon id / first selected line: 0 / 0
  253. -- text alignment: 1
  254. -- font id: 0
  255. -- text size: 12
  256. -- style flags: 0
  257. -- line height: 16
  258. -- part name: Type
  259. ----- HyperTalk script -----
  260. on mouseUp
  261.   put 3 into fieldNb
  262.   put "What type ?" into question
  263.  
  264.   -- VIEW
  265.   if highlight of bkgnd button 11 is true then
  266.     put bkgnd field fieldNb into it
  267.     set lockscreen to true
  268.     go next
  269.     find it in bkgnd field fieldNb
  270.     set lockscreen to false
  271.     exit mouseUp
  272.   end if
  273.   -- SORT
  274.   if highlight of bkgnd button 12 is true then
  275.     sort by field fieldNb
  276.     exit mouseUp
  277.   end if
  278.   -- FIND
  279.   if highlight of bkgnd button 9 is true
  280.   then
  281.   ask question
  282.   if it is empty then exit mouseUp
  283.   show msg box at 1000,1000
  284.   put "find " & quote & it & quote into msg box
  285.   put " in background field " & fieldNb after msg box
  286.   send enterKey
  287.   if the result is "Not found"
  288.   then
  289.   answer "Sorry, no such entry" with "OK"
  290. end if
  291. hide msg box
  292. set the location of msg box to 30,250
  293. end if
  294.  
  295. end mouseUp
  296.  
  297.  
  298.  
  299.  
  300. -- part 17 (button)
  301. -- low flags: 00
  302. -- high flags: 8002
  303. -- rect: left=142 top=139 right=163 bottom=235
  304. -- title width / last selected line: 0
  305. -- icon id / first selected line: 0 / 0
  306. -- text alignment: 1
  307. -- font id: 0
  308. -- text size: 12
  309. -- style flags: 0
  310. -- line height: 16
  311. -- part name: Description
  312. ----- HyperTalk script -----
  313. on mouseUp
  314.   -- SORT
  315.   if highlight of bkgnd button 12 is true then
  316.     sort by bkgnd field 4
  317.     exit mouseUp
  318.   end if
  319.   -- FIND
  320.   if highlight of background button 9 is true
  321.   then
  322.   ask "What ?"
  323.   if it is empty then exit mouseUp
  324.   show msg box at 1000,1000 -- Puts the msg box away
  325.   put "find " & quote & it & quote into msg box
  326.   put " in background field 4" after msg box
  327.   send enterKey
  328.   if the result is "Not found"
  329.   then
  330.   answer "Sorry, no such entry" with "OK"
  331. else
  332.   show msg box at 15,310
  333. end if
  334. exit mouseUp
  335. end if
  336. end mouseUp
  337.  
  338.  
  339.  
  340.  
  341.  
  342. -- part 19 (button)
  343. -- low flags: 00
  344. -- high flags: A003
  345. -- rect: left=17 top=126 right=155 bottom=91
  346. -- title width / last selected line: 0
  347. -- icon id / first selected line: 0 / 0
  348. -- text alignment: 1
  349. -- font id: 0
  350. -- text size: 12
  351. -- style flags: 0
  352. -- line height: 16
  353. -- part name: Find in...
  354. ----- HyperTalk script -----
  355. on mouseUp
  356.   set hilite of bkgnd button id 19 to true
  357.   set hilite of bkgnd button id 22 to false
  358.   set hilite of bkgnd button id 21 to false
  359.   -- Buttons which can be clicked after this one:
  360.   set autoHilite of bkgnd button 5 to true
  361.   set autoHilite of bkgnd button 6 to true
  362.   set autoHilite of bkgnd button 7 to true
  363.   set autoHilite of bkgnd button 8 to true
  364.   set autoHilite of bkgnd button 13 to true
  365. end mouseUp
  366.  
  367.  
  368.  
  369. -- part 20 (button)
  370. -- low flags: 00
  371. -- high flags: A003
  372. -- rect: left=395 top=81 right=106 bottom=486
  373. -- title width / last selected line: 0
  374. -- icon id / first selected line: 0 / 0
  375. -- text alignment: 1
  376. -- font id: 0
  377. -- text size: 12
  378. -- style flags: 0
  379. -- line height: 16
  380. -- part name: Index...
  381. ----- HyperTalk script -----
  382. on mouseUp
  383.   -- Automatic card numbering
  384.   set cursor to 4 -- A watch
  385.   set lockscreen to true -- Not display cards in the loop
  386.   go to first card
  387.   go next -- This is Help card
  388.   go next -- This is the first product card
  389.   put 1 into index
  390.   put number of cards into total
  391.   repeat until index = total-1  -- Subtract 1 for Help card
  392.     put index into background field id 23
  393.     go next card
  394.     add 1 to index
  395.   end repeat
  396.   setButtons
  397.   set lockscreen to false
  398. end mouseUp
  399.  
  400.  
  401.  
  402.  
  403. -- part 21 (button)
  404. -- low flags: 00
  405. -- high flags: 8003
  406. -- rect: left=17 top=54 right=83 bottom=92
  407. -- title width / last selected line: 0
  408. -- icon id / first selected line: 0 / 0
  409. -- text alignment: 1
  410. -- font id: 0
  411. -- text size: 12
  412. -- style flags: 0
  413. -- line height: 16
  414. -- part name: View by...
  415. ----- HyperTalk script -----
  416. on mouseUp
  417.   set highlight of bkgnd button id 21 to true
  418.   set highlight of bkgnd button id 22 to false
  419.   set highlight of bkgnd button id 19 to false
  420.   -- Buttons which can be clicked after this one:
  421.   set autoHilite of bkgnd button 5 to false
  422.   set autoHilite of bkgnd button 6 to true
  423.   set autoHilite of bkgnd button 7 to true
  424.   set autoHilite of bkgnd button 8 to false
  425.   set autoHilite of bkgnd button 13 to false
  426. end mouseUp
  427.  
  428.  
  429.  
  430. -- part 22 (button)
  431. -- low flags: 00
  432. -- high flags: A003
  433. -- rect: left=18 top=90 right=120 bottom=92
  434. -- title width / last selected line: 0
  435. -- icon id / first selected line: 0 / 0
  436. -- text alignment: 1
  437. -- font id: 0
  438. -- text size: 12
  439. -- style flags: 0
  440. -- line height: 16
  441. -- part name: Sort by...
  442. ----- HyperTalk script -----
  443. on mouseUp
  444.   set highlight of bkgnd button id 22 to true
  445.   set highlight of bkgnd button id 21 to false
  446.   set highlight of bkgnd button id 19 to false
  447.   -- Buttons which can be clicked after this one:
  448.   set autoHilite of bkgnd button 5 to true
  449.   set autoHilite of bkgnd button 6 to true
  450.   set autoHilite of bkgnd button 7 to true
  451.   set autoHilite of bkgnd button 8 to true
  452.   set autoHilite of bkgnd button 13 to true
  453. end mouseUp
  454.  
  455.  
  456.  
  457. -- part 23 (field)
  458. -- low flags: 00
  459. -- high flags: 2002
  460. -- rect: left=446 top=54 right=78 bottom=486
  461. -- title width / last selected line: 0
  462. -- icon id / first selected line: 0 / 0
  463. -- text alignment: 0
  464. -- font id: 3
  465. -- text size: 12
  466. -- style flags: 0
  467. -- line height: 16
  468. -- part name: Card Nb
  469.  
  470.  
  471. -- part 24 (button)
  472. -- low flags: 00
  473. -- high flags: 8002
  474. -- rect: left=394 top=54 right=78 bottom=447
  475. -- title width / last selected line: 0
  476. -- icon id / first selected line: 0 / 0
  477. -- text alignment: 1
  478. -- font id: 0
  479. -- text size: 12
  480. -- style flags: 0
  481. -- line height: 16
  482. -- part name: Card #
  483. ----- HyperTalk script -----
  484. on mouseUp
  485.   -- SORT
  486.   if highlight of bkgnd button 12 is true
  487.   then
  488.   sort numeric by background field 5
  489.   exit mouseUp
  490. end if
  491. -- FIND
  492. if highlight of bkgnd button 9 is true
  493. then
  494. ask "What Card # ?"
  495. if it is empty then exit mouseUp
  496. show msg box at 1000,1000 -- Puts the msg box away
  497. put "find " & quote & it & quote into msg box
  498. put " in bkgnd field 5" after msg box
  499. send enterKey
  500. if the result is "Not found"
  501. then
  502. answer "Sorry, no such entry" with "OK"
  503. else
  504.   show msg box at 15,310
  505. end if
  506. end if
  507. end mouseUp
  508.  
  509.  
  510.  
  511. -- part 30 (button)
  512. -- low flags: 00
  513. -- high flags: 0000
  514. -- rect: left=52 top=294 right=318 bottom=81
  515. -- title width / last selected line: 0
  516. -- icon id / first selected line: 25002 / 25002
  517. -- text alignment: 1
  518. -- font id: 0
  519. -- text size: 12
  520. -- style flags: 0
  521. -- line height: 16
  522. -- part name: New Button
  523. ----- HyperTalk script -----
  524. on mouseUp
  525.   go to card id 4680
  526. end mouseUp
  527.  
  528.